<!DOCTYPE html>
<html lang="en" style="height: 100%;">
<head>
    <meta charset="UTF-8">
    <title>列表认养产品</title>
    <style>
        .hander_zx{font-size:18px}.conten{background:#fff;margin-top:10px}.conten ul{overflow:hidden;padding:0;margin:0;border-bottom:1px solid #e5e5e5}.conten_floet li{float:left;list-style:none;line-height:45px;text-align:center;width:100px;cursor:pointer;color:#212121;padding:0 10px;}.active{color:#14d882!important;border-bottom:3px solid #14d882}.push_fx li{float:left;font-size:14px;list-style:none;width:10%;text-align:center;background:#f8f8f8;line-height:45px;color:#1f1f1f}.lick_push li{float:left;font-size:14px;width:10%;text-align:center;line-height:45px;list-style:none;color:#616161}.lick_push li:last-child{color:#14d882!important}.lick_push li:last-child span:nth-child(1){margin-right:5px}.lick_push li:last-child span{cursor:pointer}
    </style>
    <link rel="stylesheet" href="../css/paging.css">
    <link rel="stylesheet" href="../css/finacnce.css">
    <!--引入finacnce对内部做修正的CSS-->
    <style>
        .tab_wont li{
            width: 9.5% !important;
            overflow: hidden;
        }
        .tab_wont li:last-child{
            cursor: pointer;
        }
        #Apply li{
            width: 20% !important;
        }
        .bin_inof{
            font-size: 14px;
            line-height: 32px;
        }
        .bin_inof input{
            width: 70px;
            height: 26px;
            text-align: center;
        }
    </style>
</head>
<body style="height:100%;overflow-x: hidden">
<!--//hander-->
<div class="hander_zx" style="padding: 5px 0 0 10px;">财务报表</div>
<!--内容-->
<div class="conten">
    <ul class="conten_floet">
        <li class="active product">提现申请记录</li>
    </ul>
    <!--搜索拦-->
    <div class="input_corder" style="margin-bottom: 10px;">
        <div>
            <div class="pink_wo">
                <span>申请时间：</span>
                <div>
                    <input onclick="SetDate(this,'yyyy-MM-dd')" class="date_code" id="start_date">
                </div>
                <div>
                    <img src="../cw_img/cw_img1.png" alt="">
                </div>
            </div>
            <div class="pink_wo">
                <span>至</span>
            </div>
            <div class="pink_wo">
                <div></div>
                <div>
                    <input onclick="SetDate(this,'yyyy-MM-dd')" class="date_code" id="end_date">
                </div>
                <div>
                    <img src="../cw_img/cw_img1.png" alt="">
                </div>
            </div>
        </div>
        <div>
            <div class="pink_wo" style="margin-left: 10px;">
                <span>申请用户：</span>
                <div>
                    <input type="text" style="width: 100%;height:100%;border:none;text-align: center" id="_sale_push">
                </div>
                <div>
                    <img src="../cw_img/cw_img3.png" alt="" style="width: 15px;">
                </div>
            </div>
            <div class="pink_wo" style="margin-left: 10px;">
                <span>处理状态：</span>
                <div style="width: 139px;">
                    <select class="SelectList" id="t_bs">
                        <option value="null">全部</option>
                        <option value="0">处理中</option>
                        <option value="1">已处理</option>
                    </select>
                </div>
                <button class="dc_btn" id="cx_wp">查询</button>
            </div>
        </div>
        <div class="bin_inof" style="display: block;clear: both;margin-top: 15px;">
            <span>每次提现次数 : </span>
            <input type="text" id="frequency">
            <button class="dc_btn" style="margin-left: 10px;" id="ok_frequency">确定</button>
        </div>
    </div>
    <div class="tab_wont" id="Apply">
        <ul style="background: #F8F8F8">
            <li>流水号</li>
            <li>申请用户</li>
            <li>提现金额</li>
            <li>累计提现</li>
            <li>时间</li>
        </ul>
        <div class="bg_data">

        </div>
    </div>
    <div class="box" id="box" style="display:block;"></div>
</div>
</body>
<script src="https://cdn.bootcss.com/jquery/2.1.1-rc2/jquery.min.js"></script>
<script src="../js/data.js"></script>
<script src="../js/paging.min.js"></script>
<script>
    "use strict";$(function(){var to,lo,po,uo;$("#cx_wp").on('click',function(){to=$("#start_date").val();lo=$("#end_date").val();po=$("#_sale_push").val();uo=$("#t_bs").val();if(typeof to==="string"&&typeof lo==="string"&&typeof po==="string"&&typeof uo==="string"){return function(){uo==="null"?uo=null:uo;to===""?to=null:to;lo===""?lo=null:lo;po===""?po=null:po;eithdrawals_new(uo,po,to,lo)}()}else{return function(){eithdrawals_new(null,null,null,null)}()}});function eithdrawals_new(a,b,c,d){$.ajax({type:'post',url:'/selectWithdrawOrder',dataType:'json',contentType:"application/json",data:JSON.stringify({currentPage:1,pageCount:24,state:a,keyword:b,startTime:c,endTime:d}),success:function success(data){$("#frequency").val(data.withdrawnum);eithdrawals_page(data.total,a,b,c,d)}})}eithdrawals_new(null,null,null,null);function eithdrawals_page(e,a,b,c,d){if(typeof e==='number'&&e>0){$("#box").css("display","block")}else{$("#box").css("display","none")}var total=Math.ceil(e/24);$('#box').paging({initPageNo:1,totalPages:total,totalCount:'合计'+e+'条数据',slideSpeed:600,jump:true,callback:function callback(page){$.ajax({type:'post',url:'/selectWithdrawOrder',dataType:'json',contentType:"application/json",data:JSON.stringify({currentPage:page,pageCount:24,state:a,keyword:b,startTime:c,endTime:d}),success:function success(data){var html="";return function(){for(var i=0;i<data.data.length;i++){html+="\n                                        <ul>\n                                            <li>"+data.data[i].serialNumber+"</li>\n                                            <li>"+data.data[i].username+"</li>\n                                            <li>"+data.data[i].txmoney+"</li>\n                                            <li>"+data.data[i].leij+"</li>\n                                            <li>"+data.data[i].applytime+"</li>\n                                        </ul>\n                                    "}$(".bg_data").html(html)}()}})}})}var reg=/^[0-9]*$/;$("#ok_frequency").on('click',function(){var num_frequency=Number($("#frequency").val());if(!reg.test(num_frequency)){alert("请输入不含小数点和字母的数字");return}if($("#frequency").val()==""){alert("请输入提现次数");return}$.ajax({type:'post',url:'/setWithdraw',dataType:'json',contentType:"application/json",data:JSON.stringify({num:$("#frequency").val()}),success:function success(){$.ajax({type:'post',url:'/selectWithdrawOrder',dataType:'json',contentType:"application/json",data:JSON.stringify({currentPage:1,pageCount:24,state:null,keyword:null,startTime:null,endTime:null}),success:function success(data){$("#frequency").val(data.withdrawnum)}})}})})});
</script>
</html>